package com.itheima.service.impl;

import com.itheima.domain.Department;
import com.itheima.mapper.DepartmentMapper;
import com.itheima.service.DepartmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author is me
 * @data 2021/1/30
 */
@Service
public class DepartmentServiceImpl implements DepartmentService {

    @Autowired
    private DepartmentMapper departmentMapper;

    /**
     * 查询所有的职业信息
     * @return
     */
    @Override
    public List<Department> findAll() {
        return departmentMapper.selectByExample(null);
    }
}
